package com.ayi.bean;

/**
 * @author Ayingzz
 * @create 2021/11/28 13:19
 */
public class User {

    int id; // 用户id
    String username; // 用户名
    String password; // 口令
    boolean isAdmin; // 是否是管理员
    boolean isStop; // 启用/禁用 状态

    public User() {
    }

    public User(String username, String password, boolean isAdmin, boolean isStop) {
        this.username = username;
        this.password = password;
        this.isAdmin = isAdmin;
        this.isStop = isStop;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }

    public boolean isStop() {
        return isStop;
    }

    public void setStop(boolean stop) {
        isStop = stop;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", isAdmin=" + isAdmin +
                ", isStop=" + isStop +
                '}';
    }
}
